home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
TSMObject.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-01
|
19KB
|
541 lines
/*
* This file was generated by the SOM Compiler.
* FileName: TSMObject.h.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emith.dll: 2.33
*/
#ifndef SOM_TSMObject_h
#define SOM_TSMObject_h
/*
* Passthru lines: File: "C.h", "before"
*/
#include <TextServices.h>
#include <som.h>
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* Define the class name as an object type
*/
#ifndef TSMObject
#define TSMObject SOMObject
#endif
#include <somobj.h>
/*
* Start of user-defined types:
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMObject
#define SOMObject SOMObject
#endif /* SOMObject */
#ifndef HIWindow
#define HIWindow SOMObject
#endif /* HIWindow */
#ifndef HIEmbeddingPanel
#define HIEmbeddingPanel SOMObject
#endif /* HIEmbeddingPanel */
/*
* End of user-defined types.
*/
#define TSMObject_MajorVersion 1
#define TSMObject_MinorVersion 1
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define TSMObjectClassData d
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#ifdef OLDIBMSOMAPISUPPORT
#define TSMObject_classObj somNewClassReference(TSMObject)
#define _TSMObject TSMObject_classObj
#define TSMObjectCClassData TSMObjectClassData
#define TSMObjectNewClass(major,minor) somNewVersionedClassReference(TSMObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define TSMObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/*
* Declare the class data structure
*/
SOMEXTERN struct TSMObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMAny *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken _get_fTSMContext;
somMToken _set_fTSMContext;
somMToken _get_fStatus;
somMToken _set_fStatus;
somMToken _get_fServiceContext;
somMToken _set_fServiceContext;
somMToken InitializeService;
somMToken TerminateService;
somMToken ServiceChanged;
somMToken EditInlineHole;
somMToken FeatureChanged;
somMToken ActivateService;
somMToken DeactivateService;
somMToken ServiceKeyEvent;
somMToken ServiceMouseEvent;
somMToken ServiceWindowEvent;
somMToken ReleaseInlineHoles;
somMToken HideServiceWindows;
somMToken DoSetCursor;
somMToken TerminateInput;
} SOMDLINK TSMObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(TSMObject_Class_Source) && !defined(SOM_Module_tsmobject_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list TSMObjectClassData
#endif
#endif
/*
* New macro for TSMObject
*/
#define TSMObjectNew() somNewObject(TSMObject)
/*
* Override method: somInit
*/
#define TSMObject_somInit(somSelf) \
SOMObject_somInit(somSelf)
/*
* New Method: _get_fTSMContext
*/
typedef TSMContext (SOMLINK *somTD_TSMObject__get_fTSMContext)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject__get_fTSMContext "::TSMObject::fTSMContext"
#define TSMObject__get_fTSMContext(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, _get_fTSMContext) \
(somSelf,ev))
#ifndef SOMGD_get_fTSMContext
#if defined _get_fTSMContext || defined __get_fTSMContext
#undef _get_fTSMContext
#undef __get_fTSMContext
#define SOMGD_get_fTSMContext 1
#else
#define __get_fTSMContext TSMObject__get_fTSMContext
#endif /* __get_fTSMContext */
#endif /* SOMGD_get_fTSMContext */
/*
* New Method: _set_fTSMContext
*/
typedef void (SOMLINK *somTD_TSMObject__set_fTSMContext)(TSMObject *somSelf, Environment *ev,
TSMContext fTSMContext);
#define somMD_TSMObject__set_fTSMContext "::TSMObject::fTSMContext"
#define TSMObject__set_fTSMContext(somSelf,ev,fTSMContext) \
(SOM_Resolve(somSelf, TSMObject, _set_fTSMContext) \
(somSelf,ev,fTSMContext))
#ifndef SOMGD_set_fTSMContext
#if defined _set_fTSMContext || defined __set_fTSMContext
#undef _set_fTSMContext
#undef __set_fTSMContext
#define SOMGD_set_fTSMContext 1
#else
#define __set_fTSMContext TSMObject__set_fTSMContext
#endif /* __set_fTSMContext */
#endif /* SOMGD_set_fTSMContext */
/*
* New Method: _get_fStatus
*/
typedef OSStatus (SOMLINK *somTD_TSMObject__get_fStatus)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject__get_fStatus "::TSMObject::fStatus"
#define TSMObject__get_fStatus(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, _get_fStatus) \
(somSelf,ev))
#ifndef SOMGD_get_fStatus
#if defined _get_fStatus || defined __get_fStatus
#undef _get_fStatus
#undef __get_fStatus
#define SOMGD_get_fStatus 1
#else
#define __get_fStatus TSMObject__get_fStatus
#endif /* __get_fStatus */
#endif /* SOMGD_get_fStatus */
/*
* New Method: _set_fStatus
*/
typedef void (SOMLINK *somTD_TSMObject__set_fStatus)(TSMObject *somSelf, Environment *ev,
OSStatus fStatus);
#define somMD_TSMObject__set_fStatus "::TSMObject::fStatus"
#define TSMObject__set_fStatus(somSelf,ev,fStatus) \
(SOM_Resolve(somSelf, TSMObject, _set_fStatus) \
(somSelf,ev,fStatus))
#ifndef SOMGD_set_fStatus
#if defined _set_fStatus || defined __set_fStatus
#undef _set_fStatus
#undef __set_fStatus
#define SOMGD_set_fStatus 1
#else
#define __set_fStatus TSMObject__set_fStatus
#endif /* __set_fStatus */
#endif /* SOMGD_set_fStatus */
/*
* New Method: _get_fServiceContext
*/
typedef TSMServiceContextRef (SOMLINK *somTD_TSMObject__get_fServiceContext)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject__get_fServiceContext "::TSMObject::fServiceContext"
#define TSMObject__get_fServiceContext(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, _get_fServiceContext) \
(somSelf,ev))
#ifndef SOMGD_get_fServiceContext
#if defined _get_fServiceContext || defined __get_fServiceContext
#undef _get_fServiceContext
#undef __get_fServiceContext
#define SOMGD_get_fServiceContext 1
#else
#define __get_fServiceContext TSMObject__get_fServiceContext
#endif /* __get_fServiceContext */
#endif /* SOMGD_get_fServiceContext */
/*
* New Method: _set_fServiceContext
*/
typedef void (SOMLINK *somTD_TSMObject__set_fServiceContext)(TSMObject *somSelf, Environment *ev,
TSMServiceContextRef fServiceContext);
#define somMD_TSMObject__set_fServiceContext "::TSMObject::fServiceContext"
#define TSMObject__set_fServiceContext(somSelf,ev,fServiceContext) \
(SOM_Resolve(somSelf, TSMObject, _set_fServiceContext) \
(somSelf,ev,fServiceContext))
#ifndef SOMGD_set_fServiceContext
#if defined _set_fServiceContext || defined __set_fServiceContext
#undef _set_fServiceContext
#undef __set_fServiceContext
#define SOMGD_set_fServiceContext 1
#else
#define __set_fServiceContext TSMObject__set_fServiceContext
#endif /* __set_fServiceContext */
#endif /* SOMGD_set_fServiceContext */
/*
* New Method: InitializeService
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_InitializeService)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_InitializeService "::TSMObject::InitializeService"
#define TSMObject_InitializeService(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, InitializeService) \
(somSelf,ev))
#ifndef SOMGD_InitializeService
#if defined _InitializeService || defined __InitializeService
#undef _InitializeService
#undef __InitializeService
#define SOMGD_InitializeService 1
#else
#define _InitializeService TSMObject_InitializeService
#endif /* _InitializeService */
#endif /* SOMGD_InitializeService */
/*
* New Method: TerminateService
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_TerminateService)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_TerminateService "::TSMObject::TerminateService"
#define TSMObject_TerminateService(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, TerminateService) \
(somSelf,ev))
#ifndef SOMGD_TerminateService
#if defined _TerminateService || defined __TerminateService
#undef _TerminateService
#undef __TerminateService
#define SOMGD_TerminateService 1
#else
#define _TerminateService TSMObject_TerminateService
#endif /* _TerminateService */
#endif /* SOMGD_TerminateService */
/*
* New Method: ServiceChanged
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_ServiceChanged)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_ServiceChanged "::TSMObject::ServiceChanged"
#define TSMObject_ServiceChanged(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, ServiceChanged) \
(somSelf,ev))
#ifndef SOMGD_ServiceChanged
#if defined _ServiceChanged || defined __ServiceChanged
#undef _ServiceChanged
#undef __ServiceChanged
#define SOMGD_ServiceChanged 1
#else
#define _ServiceChanged TSMObject_ServiceChanged
#endif /* _ServiceChanged */
#endif /* SOMGD_ServiceChanged */
/*
* New Method: EditInlineHole
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_EditInlineHole)(TSMObject *somSelf, Environment *ev,
AppleEvent* theEvent);
#define somMD_TSMObject_EditInlineHole "::TSMObject::EditInlineHole"
#define TSMObject_EditInlineHole(somSelf,ev,theEvent) \
(SOM_Resolve(somSelf, TSMObject, EditInlineHole) \
(somSelf,ev,theEvent))
#ifndef SOMGD_EditInlineHole
#if defined _EditInlineHole || defined __EditInlineHole
#undef _EditInlineHole
#undef __EditInlineHole
#define SOMGD_EditInlineHole 1
#else
#define _EditInlineHole TSMObject_EditInlineHole
#endif /* _EditInlineHole */
#endif /* SOMGD_EditInlineHole */
/*
* New Method: FeatureChanged
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_FeatureChanged)(TSMObject *somSelf, Environment *ev,
UInt32 theType);
#define somMD_TSMObject_FeatureChanged "::TSMObject::FeatureChanged"
#define TSMObject_FeatureChanged(somSelf,ev,theType) \
(SOM_Resolve(somSelf, TSMObject, FeatureChanged) \
(somSelf,ev,theType))
#ifndef SOMGD_FeatureChanged
#if defined _FeatureChanged || defined __FeatureChanged
#undef _FeatureChanged
#undef __FeatureChanged
#define SOMGD_FeatureChanged 1
#else
#define _FeatureChanged TSMObject_FeatureChanged
#endif /* _FeatureChanged */
#endif /* SOMGD_FeatureChanged */
/*
* New Method: ActivateService
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_ActivateService)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_ActivateService "::TSMObject::ActivateService"
#define TSMObject_ActivateService(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, ActivateService) \
(somSelf,ev))
#ifndef SOMGD_ActivateService
#if defined _ActivateService || defined __ActivateService
#undef _ActivateService
#undef __ActivateService
#define SOMGD_ActivateService 1
#else
#define _ActivateService TSMObject_ActivateService
#endif /* _ActivateService */
#endif /* SOMGD_ActivateService */
/*
* New Method: DeactivateService
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_DeactivateService)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_DeactivateService "::TSMObject::DeactivateService"
#define TSMObject_DeactivateService(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, DeactivateService) \
(somSelf,ev))
#ifndef SOMGD_DeactivateService
#if defined _DeactivateService || defined __DeactivateService
#undef _DeactivateService
#undef __DeactivateService
#define SOMGD_DeactivateService 1
#else
#define _DeactivateService TSMObject_DeactivateService
#endif /* _DeactivateService */
#endif /* SOMGD_DeactivateService */
/*
* New Method: ServiceMouseEvent
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_ServiceMouseEvent)(TSMObject *somSelf, Environment *ev,
Point* mousePos,
KeyboardModifiers Modifiers,
UInt32 when,
UInt32 theEventType,
AppleEvent* event);
#define somMD_TSMObject_ServiceMouseEvent "::TSMObject::ServiceMouseEvent"
#define TSMObject_ServiceMouseEvent(somSelf,ev,mousePos,Modifiers,when,theEventType,event) \
(SOM_Resolve(somSelf, TSMObject, ServiceMouseEvent) \
(somSelf,ev,mousePos,Modifiers,when,theEventType,event))
#ifndef SOMGD_ServiceMouseEvent
#if defined _ServiceMouseEvent || defined __ServiceMouseEvent
#undef _ServiceMouseEvent
#undef __ServiceMouseEvent
#define SOMGD_ServiceMouseEvent 1
#else
#define _ServiceMouseEvent TSMObject_ServiceMouseEvent
#endif /* _ServiceMouseEvent */
#endif /* SOMGD_ServiceMouseEvent */
/*
* New Method: ServiceKeyEvent
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_ServiceKeyEvent)(TSMObject *somSelf, Environment *ev,
KeyboardModifiers Modifiers,
VirtualKeyCode theKeyCode,
VirtualKeyCode theCharCode,
AppleEvent* event);
#define somMD_TSMObject_ServiceKeyEvent "::TSMObject::ServiceKeyEvent"
#define TSMObject_ServiceKeyEvent(somSelf,ev,Modifiers,theKeyCode,theCharCode,event) \
(SOM_Resolve(somSelf, TSMObject, ServiceKeyEvent) \
(somSelf,ev,Modifiers,theKeyCode,theCharCode,event))
#ifndef SOMGD_ServiceKeyEvent
#if defined _ServiceKeyEvent || defined __ServiceKeyEvent
#undef _ServiceKeyEvent
#undef __ServiceKeyEvent
#define SOMGD_ServiceKeyEvent 1
#else
#define _ServiceKeyEvent TSMObject_ServiceKeyEvent
#endif /* _ServiceKeyEvent */
#endif /* SOMGD_ServiceKeyEvent */
/*
* New Method: ServiceWindowEvent
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_ServiceWindowEvent)(TSMObject *somSelf, Environment *ev,
HIWindow* theWindow,
UInt32 theEventType,
AppleEvent* event);
#define somMD_TSMObject_ServiceWindowEvent "::TSMObject::ServiceWindowEvent"
#define TSMObject_ServiceWindowEvent(somSelf,ev,theWindow,theEventType,event) \
(SOM_Resolve(somSelf, TSMObject, ServiceWindowEvent) \
(somSelf,ev,theWindow,theEventType,event))
#ifndef SOMGD_ServiceWindowEvent
#if defined _ServiceWindowEvent || defined __ServiceWindowEvent
#undef _ServiceWindowEvent
#undef __ServiceWindowEvent
#define SOMGD_ServiceWindowEvent 1
#else
#define _ServiceWindowEvent TSMObject_ServiceWindowEvent
#endif /* _ServiceWindowEvent */
#endif /* SOMGD_ServiceWindowEvent */
/*
* New Method: HideServiceWindows
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_HideServiceWindows)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_HideServiceWindows "::TSMObject::HideServiceWindows"
#define TSMObject_HideServiceWindows(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, HideServiceWindows) \
(somSelf,ev))
#ifndef SOMGD_HideServiceWindows
#if defined _HideServiceWindows || defined __HideServiceWindows
#undef _HideServiceWindows
#undef __HideServiceWindows
#define SOMGD_HideServiceWindows 1
#else
#define _HideServiceWindows TSMObject_HideServiceWindows
#endif /* _HideServiceWindows */
#endif /* SOMGD_HideServiceWindows */
/*
* New Method: DoSetCursor
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_DoSetCursor)(TSMObject *somSelf, Environment *ev,
Point* mousePos,
RegionClass rgnClass,
ByteOffset offset,
boolean isLeftHand,
AppleEvent* theEvent);
#define somMD_TSMObject_DoSetCursor "::TSMObject::DoSetCursor"
#define TSMObject_DoSetCursor(somSelf,ev,mousePos,rgnClass,offset,isLeftHand,theEvent) \
(SOM_Resolve(somSelf, TSMObject, DoSetCursor) \
(somSelf,ev,mousePos,rgnClass,offset,isLeftHand,theEvent))
#ifndef SOMGD_DoSetCursor
#if defined _DoSetCursor || defined __DoSetCursor
#undef _DoSetCursor
#undef __DoSetCursor
#define SOMGD_DoSetCursor 1
#else
#define _DoSetCursor TSMObject_DoSetCursor
#endif /* _DoSetCursor */
#endif /* SOMGD_DoSetCursor */
/*
* New Method: ReleaseInlineHoles
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_ReleaseInlineHoles)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_ReleaseInlineHoles "::TSMObject::ReleaseInlineHoles"
#define TSMObject_ReleaseInlineHoles(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, ReleaseInlineHoles) \
(somSelf,ev))
#ifndef SOMGD_ReleaseInlineHoles
#if defined _ReleaseInlineHoles || defined __ReleaseInlineHoles
#undef _ReleaseInlineHoles
#undef __ReleaseInlineHoles
#define SOMGD_ReleaseInlineHoles 1
#else
#define _ReleaseInlineHoles TSMObject_ReleaseInlineHoles
#endif /* _ReleaseInlineHoles */
#endif /* SOMGD_ReleaseInlineHoles */
/*
* New Method: TerminateInput
*/
typedef OSStatus (SOMLINK *somTD_TSMObject_TerminateInput)(TSMObject *somSelf, Environment *ev);
#define somMD_TSMObject_TerminateInput "::TSMObject::TerminateInput"
#define TSMObject_TerminateInput(somSelf,ev) \
(SOM_Resolve(somSelf, TSMObject, TerminateInput) \
(somSelf,ev))
#ifndef SOMGD_TerminateInput
#if defined _TerminateInput || defined __TerminateInput
#undef _TerminateInput
#undef __TerminateInput
#define SOMGD_TerminateInput 1
#else
#define _TerminateInput TSMObject_TerminateInput
#endif /* _TerminateInput */
#endif /* SOMGD_TerminateInput */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define TSMObject_somUninit SOMObject_somUninit
#define TSMObject_somDuplicateReference SOMObject_somDuplicateReference
#define TSMObject_somCompareReference SOMObject_somCompareReference
#define TSMObject_somRelease SOMObject_somRelease
#define TSMObject_somFree SOMObject_somFree
#define TSMObject_somCanDelete SOMObject_somCanDelete
#define TSMObject_somGetClass SOMObject_somGetClass
#define TSMObject_somGetClassName SOMObject_somGetClassName
#define TSMObject_somGetSize SOMObject_somGetSize
#define TSMObject_somIsA SOMObject_somIsA
#define TSMObject_somRespondsTo SOMObject_somRespondsTo
#define TSMObject_somIsInstanceOf SOMObject_somIsInstanceOf
#define TSMObject_somDispatch SOMObject_somDispatch
#define TSMObject_somClassDispatch SOMObject_somClassDispatch
#define TSMObject_somCastObj SOMObject_somCastObj
#define TSMObject_somResetObj SOMObject_somResetObj
#define TSMObject_somPrintSelf SOMObject_somPrintSelf
#define TSMObject_somDumpSelf SOMObject_somDumpSelf
#define TSMObject_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_TSMObject_h */